﻿using System;
using System.Xml.Serialization;

namespace Limestone
{
    [Serializable]
    [XmlRoot("FieldSetting", Namespace = "http://www.limestone.se", IsNullable = false)]
    public class FieldSetting : IFieldSetting
    {
        [XmlAttribute]
        public string HelpText { get; set; }
        [XmlAttribute]
        public string Title { get; set; }
        [XmlAttribute]
        public string Name { get; set; }
        [XmlAttribute]
        public FieldType Type { get; set; }
        [XmlAttribute]
        public int Index { get; set; }


        public FieldSetting()
        {
            
        }

        public FieldSetting(FieldType type, string name)
        {
            Type = type;
            Name = name;
        }
    }
}
